import request from "@/utils/request";

// 查询企业列表
export function listEnterprise(query) {
  return request({
    url: "/kjy/enterprise/list",
    method: "get",
    params: query,
  });
}

// 查询企业详细
export function getEnterprise(id) {
  return request({
    url: "/kjy/enterprise/" + id,
    method: "get",
  });
}

// 新增企业
export function addEnterprise(data) {
  return request({
    url: "/kjy/enterprise",
    method: "post",
    data: data,
  });
}

// 修改企业
export function updateEnterprise(data) {
  return request({
    url: "/kjy/enterprise",
    method: "put",
    data: data,
  });
}

// 删除企业
export function delEnterprise(id) {
  return request({
    url: "/kjy/enterprise/" + id,
    method: "delete",
  });
}

// 查询高新企业列表
export function listHighEnterprise(query) {
  return request({
    url: "/kjy/hightechenterprise/list",
    method: "get",
    params: query,
  });
}

// 查询高新企业详细
export function getHighEnterprise(id) {
  return request({
    url: "/kjy/hightechenterprise/" + id,
    method: "get",
  });
}

// 新增高新企业
export function addHighEnterprise(data) {
  return request({
    url: "/kjy/hightechenterprise",
    method: "post",
    data: data,
  });
}

// 修改高新企业
export function updateHighEnterprise(data) {
  return request({
    url: "/kjy/hightechenterprise",
    method: "put",
    data: data,
  });
}

// 删除高新企业
export function delHighEnterprise(id) {
  return request({
    url: "/kjy/hightechenterprise/" + id,
    method: "delete",
  });


}
